/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const wechatRouter = {
  path: '/wechat',
  component: Layout,
  redirect: '/wechat/wxuser',
  name: 'Wechat',
  meta: {
    title: '微信公众号管理',
  },
  children: [
    {
      path: 'wxuser',
      component: () => import('@/views/wechat/user/'),
      name: 'WxUser',
      meta: { title: '微信客户信息' },
    },
    {
      path: 'menu',
      component: () => import('@/views/wechat/menu/'),
      name: 'Menu',
      meta: { title: '微信菜单管理' },
    },
    {
      path: 'member_role',
      component: () => import('@/views/wechat/role/'),
      name: 'Role',
      meta: { title: '微信用户角色' },
    },
    {
      path: 'swipe_image',
      component: () => import('@/views/wechat/swipe/'),
      name: 'Swipe',
      meta: { title: '图片轮播' },
    },
  ]
}

export default wechatRouter
